Hello,
i get error in this code , i want to check both Attribute Object Text and Object Heading ,should i "||" use? have any one idea ?
string Text = o."Object Text" && o."Object Heading"
Thx Control17 - Thu Aug 17 03:11:33 EDT 2017 |
Re: Object Text I do not know from which language you have the &&. In DXL, a && is a logical AND and has nothing to do with strings., In DXL, Strings are concatenated with a blank. And you should convert an attribute reference (o.attrname, o."Object Text") to its content by explicitely concatenating the reference with an empty string (o."Object Text" ""). And it won't hurt to separate the conversions with brackets. In total you have. string sText = (o."Object Text" "") (o."Object Heading" "")
|
Re: Object Text Mike.Scharnow - Thu Aug 17 07:44:25 EDT 2017 I do not know from which language you have the &&. In DXL, a && is a logical AND and has nothing to do with strings., In DXL, Strings are concatenated with a blank. And you should convert an attribute reference (o.attrname, o."Object Text") to its content by explicitely concatenating the reference with an empty string (o."Object Text" ""). And it won't hurt to separate the conversions with brackets. In total you have. string sText = (o."Object Text" "") (o."Object Heading" "")
Thank u |